#ifndef __I2C_H_
#define __I2C_H_

#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <linux/i2c-dev.h>
#include <unistd.h>
#include <linux/i2c.h>
#include <semaphore.h>

int i2c_init(void);
int i2c_read(int fd, unsigned char dev_addr, unsigned char reg_addr, unsigned char *data_buf, int len);
// int i2c_read2(int fd, unsigned char reg, unsigned char *val);

#endif

